package cn.ztydata.teachingsystem.heaven.cons;

import com.google.common.collect.Maps;

import java.util.Map;

/**
 * 资源媒体类型
 * Created by chenxin on 2014/12/18.
 */
public class MediaType {
    public static final int AUDIO = 1;
    public static final int VEDIO = 2;
    public static final int PICTURE = 3;
    public static final int TEXT = 4;

    public static Map<Integer, String> map;

    public static final String[] MEDIA_WORD;

    static {
        map = Maps.newHashMap();
        map.put(AUDIO, "mp3:wma"); //音频
        map.put(VEDIO, "mp4:flv:swf"); //视频
        map.put(PICTURE, "gif:jpg:jpeg:bmp:png"); //图片
        map.put(TEXT, "txt:ppt:pptx:xls:xlsx:doc:docx:rtf:pdf:rar:zip:kp:htm:html:xml"); //文本

        MEDIA_WORD = new String[] {"doc", "docx"};
    }
}
